<template>
  <el-dialog :title="title" :visible.sync="dialogTableVisible" width="1000px">
    <el-table :data="tableData" height="400">
      <el-table-column prop="creditType" label="授信类别" width="120">
        <template slot-scope="scope">
          {{scope.row.creditType === 1 ? '散装水泥' : '包装水泥'}}
        </template>
      </el-table-column>
      <el-table-column prop="creditUnit" label="授信单位" width="120">
        <template slot-scope="scope">
          {{CREDIT_TYPE[scope.row.creditType]}}
        </template>
      </el-table-column>
      <!-- <el-table-column prop="custName" label="客户名称"></el-table-column> -->
      <el-table-column prop="creditQuota" label="授信额度" width="120"></el-table-column>
      <el-table-column prop="startDate" label="授信开始时间" width="120"></el-table-column>
      <el-table-column prop="endDate" label="授信结束时间" width="120"></el-table-column>
      <el-table-column prop="username" label="授信人" width="100"></el-table-column>
      <el-table-column prop="updateTime" label="更新时间" width="160"></el-table-column>
      <el-table-column prop="deleted" label="状态" width="100">
        <template slot-scope="scope">
          {{ scope.row.deleted === 1 ? '已删除' : '当前使用' }}
        </template>
      </el-table-column>
    </el-table>
  </el-dialog>
</template>

<script>
export default {
  data () {
    return {
      CREDIT_TYPE: {
        '1': '重量',
        '2': '金额',
        '3': '包装数量'
      },
      tableData: [],
      title: '',
      dialogTableVisible: false
    }
  }
}
</script>

<style>
</style>